import request from '@/utils/request'

// 新建任务
export function addTask (data) {
  return request({
    url: '/backend/task/create-task',
    method: 'post',
    data
  })
}
// 获取任务列表
export function taskList (data) {
  return request({
    url: '/backend/task/list',
    method: 'get',
    params: data
  })
}
// 任务详情
export function taskInfo (data) {
  return request({
    url: '/backend/task/detail',
    method: 'get',
    params: data
  })
}
// 获取用户列表
export function getSignToken (data) {
  return request({
    url: '/backend/task/createnewtoken',
    method: 'get',
    params: data
  })
}
// 上传手机图片
export function uploadMobileImg (data) {
  return request({
    url: '/backend/task/updatetmpimg',
    method: 'post',
    data
  })
}
// 获取上传的临时图片
export function getMobileImg (data) {
  return request({
    url: '/backend/task/gettmpimg',
    method: 'get',
    params: data
  })
}
// 获取上传的临时图片
export function deleteMobileImg (data) {
  return request({
    url: '/backend/task/deltmpimg',
    method: 'get',
    params: data
  })
}
// 任务转派
export function taskTransfer (data) {
  return request({
    url: '/backend/task/transfer',
    method: 'get',
    params: data
  })
}
// 任务完成
export function taskComplate (data) {
  return request({
    url: '/backend/task/finishtask',
    method: 'post',
    data
  })
}
// 任务评价
export function taskAccess (data) {
	return request({
		url: '/backend/task/scoretask',
		method: 'post',
		data
	})
}
// 任务重启
export function taskRestart (data) {
	return request({
		url: '/backend/task/reboot',
		method: 'post',
		data
	})
}
